package com.liuyanzhao.blog.entity;

import java.util.Date;

/**
 * 
 * @author Lu Han
 *  链接的get set 
 * @CrateTime: 2019年6月22日
 */
public class Link {
    private Integer linkId;

    private String linkUrl;

    private String linkName;

    private String linkImage;

    private String linkDescription;

    private String linkOwnerNickname;

    private String linkOwnerContact;

    private Date linkUpdateTime;

    private Date linkCreateTime;

    private Integer linkOrder;

    private Integer linkStatus;

    public Integer getLinkId() {
        return linkId;
    }

    public void setLinkId(Integer linkId) {
        this.linkId = linkId;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl == null ? null : linkUrl.trim();
    }

    public String getLinkName() {
        return linkName;
    }

    public void setLinkName(String linkName) {
        this.linkName = linkName == null ? null : linkName.trim();
    }

    public String getLinkImage() {
        return linkImage;
    }

    public void setLinkImage(String linkImage) {
        this.linkImage = linkImage == null ? null : linkImage.trim();
    }

    public String getLinkDescription() {
        return linkDescription;
    }

    public void setLinkDescription(String linkDescription) {
        this.linkDescription = linkDescription == null ? null : linkDescription.trim();
    }

    public String getLinkOwnerNickname() {
        return linkOwnerNickname;
    }

    public void setLinkOwnerNickname(String linkOwnerNickname) {
        this.linkOwnerNickname = linkOwnerNickname == null ? null : linkOwnerNickname.trim();
    }

    public String getLinkOwnerContact() {
        return linkOwnerContact;
    }

    public void setLinkOwnerContact(String linkOwnerContact) {
        this.linkOwnerContact = linkOwnerContact == null ? null : linkOwnerContact.trim();
    }

    public Date getLinkUpdateTime() {
        return linkUpdateTime;
    }

    public void setLinkUpdateTime(Date linkUpdateTime) {
        this.linkUpdateTime = linkUpdateTime;
    }

    public Date getLinkCreateTime() {
        return linkCreateTime;
    }

    public void setLinkCreateTime(Date linkCreateTime) {
        this.linkCreateTime = linkCreateTime;
    }

    public Integer getLinkOrder() {
        return linkOrder;
    }

    public void setLinkOrder(Integer linkOrder) {
        this.linkOrder = linkOrder;
    }

    public Integer getLinkStatus() {
        return linkStatus;
    }

    public void setLinkStatus(Integer linkStatus) {
        this.linkStatus = linkStatus;
    }

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((linkCreateTime == null) ? 0 : linkCreateTime.hashCode());
		result = prime * result + ((linkDescription == null) ? 0 : linkDescription.hashCode());
		result = prime * result + ((linkId == null) ? 0 : linkId.hashCode());
		result = prime * result + ((linkImage == null) ? 0 : linkImage.hashCode());
		result = prime * result + ((linkName == null) ? 0 : linkName.hashCode());
		result = prime * result + ((linkOrder == null) ? 0 : linkOrder.hashCode());
		result = prime * result + ((linkOwnerContact == null) ? 0 : linkOwnerContact.hashCode());
		result = prime * result + ((linkOwnerNickname == null) ? 0 : linkOwnerNickname.hashCode());
		result = prime * result + ((linkStatus == null) ? 0 : linkStatus.hashCode());
		result = prime * result + ((linkUpdateTime == null) ? 0 : linkUpdateTime.hashCode());
		result = prime * result + ((linkUrl == null) ? 0 : linkUrl.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Link other = (Link) obj;
		if (linkCreateTime == null) {
			if (other.linkCreateTime != null)
				return false;
		} else if (!linkCreateTime.equals(other.linkCreateTime))
			return false;
		if (linkDescription == null) {
			if (other.linkDescription != null)
				return false;
		} else if (!linkDescription.equals(other.linkDescription))
			return false;
		if (linkId == null) {
			if (other.linkId != null)
				return false;
		} else if (!linkId.equals(other.linkId))
			return false;
		if (linkImage == null) {
			if (other.linkImage != null)
				return false;
		} else if (!linkImage.equals(other.linkImage))
			return false;
		if (linkName == null) {
			if (other.linkName != null)
				return false;
		} else if (!linkName.equals(other.linkName))
			return false;
		if (linkOrder == null) {
			if (other.linkOrder != null)
				return false;
		} else if (!linkOrder.equals(other.linkOrder))
			return false;
		if (linkOwnerContact == null) {
			if (other.linkOwnerContact != null)
				return false;
		} else if (!linkOwnerContact.equals(other.linkOwnerContact))
			return false;
		if (linkOwnerNickname == null) {
			if (other.linkOwnerNickname != null)
				return false;
		} else if (!linkOwnerNickname.equals(other.linkOwnerNickname))
			return false;
		if (linkStatus == null) {
			if (other.linkStatus != null)
				return false;
		} else if (!linkStatus.equals(other.linkStatus))
			return false;
		if (linkUpdateTime == null) {
			if (other.linkUpdateTime != null)
				return false;
		} else if (!linkUpdateTime.equals(other.linkUpdateTime))
			return false;
		if (linkUrl == null) {
			if (other.linkUrl != null)
				return false;
		} else if (!linkUrl.equals(other.linkUrl))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Link [linkId=" + linkId + ", linkUrl=" + linkUrl + ", linkName=" + linkName + ", linkImage=" + linkImage
				+ ", linkDescription=" + linkDescription + ", linkOwnerNickname=" + linkOwnerNickname
				+ ", linkOwnerContact=" + linkOwnerContact + ", linkUpdateTime=" + linkUpdateTime + ", linkCreateTime="
				+ linkCreateTime + ", linkOrder=" + linkOrder + ", linkStatus=" + linkStatus + "]";
	}
    
    
}